<html dir="ltr" lang="en">
<head>
  <meta charset="utf-8">
  <title>Blockly Turtle Graphics</title>
  <link rel="stylesheet" type="text/css" href="style.css">
  <script type="text/javascript" src="/storage.js"></script>
  <script type="text/javascript" src="../_soy/soyutils.js"></script>
  <script type="text/javascript" src="template.js"></script>
  <script>
    var MSG = {
      // Block text.
      // Parts for: 'move forward by 10'.
      move: 'move',
      moveBy: 'by',
      forward: 'forward',
      backward: 'backward',
      // Parts for: 'turn right by 90'.
      turn: 'turn',
      turnBy: 'by',
      right: 'right',
      left: 'left',
      setWidth: 'set width',
      setColour: 'set colour',
      pen: 'pen',
      up: 'up',
      down: 'down',
      hide: 'hide',
      show: 'show',
      turtle: 'turtle',
      // Tooltips for general blocks.
      moveTooltip: 'Moves the turtle forward or backward\n' +
          'by the specified amount.',
      turnTooltip: 'Turns the turtle left or right\n' +
          'by the specified number of degrees.',
      widthTooltip: 'Changes the width of the pen.',
      penTooltip: 'Lifts or lowers the pen,\n' +
          'to start or stop drawing.',
      colourTooltip: 'Changes the colour of the pen.',
      turtleVisibilityTooltip: 'Makes the turtle (green circle and arrow) visible or invisible.',
      codeTooltip: 'See generated JavaScript code.',
      linkTooltip: 'Save and link to blocks.',
      // Tooltips for tutorial-only blocks.
      moveForward100Tooltip: 'Moves the turtle forward 100 pixels.',
      turnRight90Tooltip: 'Turns the turtle right by 90 degrees.',
      // Toolbox categories.
      catTurtle: 'Turtle',
      catControl: 'Control',
      catLogic: 'Logic',
      catMath: 'Math',
      catLists: 'Lists',
      catColour: 'Colour',
      catVariables: 'Variables',
      catProcedures: 'Procedures',
      // Misc text.
      level: 'Level',
      capacity0: 'You have <span id="capacityNumber">0</span> blocks left.',
      capacity1: 'You have <span id="capacityNumber">1</span> block left.',
      capacity2: 'You have <span id="capacityNumber">%1</span> blocks left.',
      unloadWarning: 'Leaving this page will result in the loss of your work.',
      runProgram: 'Run Program',
      resetProgram: '\u00A0 \u00A0 Reset \u00A0 \u00A0',
      title: 'Turtle Graphics',
      // Level hints.
      hints: ['level 0', // There is no level 0.
         'I\'m a turtle holding a pen in my tail. Help me draw a square.',
         'Now help me draw a square using only 3 blocks.\n' +
             'Hint: It doesn\'t matter which way I face at the end.',
         'Have fun!'
      ]
    };
    if ('BlocklyStorage' in window) {
      BlocklyStorage.HTTPREQUEST_ERROR = 'There was a problem with the request.\n';
      BlocklyStorage.LINK_ALERT = 'Share your blocks with this link:\n\n';
      BlocklyStorage.HASH_ERROR =
          'Sorry, "%1" doesn\'t correspond with any saved Blockly file.';
      BlocklyStorage.XML_ERROR = 'Could not load your saved file.\n'+
          'Perhaps it was created with a different version of Blockly?\nXML: ';
    }
    var languageSrc = ['en/_messages.js',
        'common/control.js',
        'common/logic.js',
        'common/math.js',
        'common/lists.js',
        'common/colour.js',
        'common/variables.js',
        'common/procedures.js'];
  </script>
</head>
<body>
  <script type="text/javascript" src="turtle.js"></script>
</body>
</html>
